package com.ad.pet.app.login.fragment;

import com.ad.pet.common.structure.mvp.AbsView;
import com.ad.pet.common.structure.mvp.BasePresenter;
import com.ad.pet.models.remote.User;

/**
 * Created by SEELE on 2018/3/21.
 */

public interface AccountLoginContract {

    interface Presenter extends BasePresenter<AccountLoginContract.View> {


        void register(String phoneNumber,String smsCode,String password,String to_reference_codeBODY);
        void accountLogin(String account, String password );
        void resetPassword(String pwd,String new_pwd,String new_pwd_reset);
        void getEmailCode(String phoneNumber,String scene, String second,String type);
        void forgetPwdReset(String phone,String code,String pwd);
        void registJpush();


    }

    public interface View extends AbsView {
        void phoneLoginSuccess(User user);
        void accountLoginSuccess(User user);
        void getEmailCodeSuccess();
        void forgetPwdResetSuccess();
        void resetPwdSuccesss();
        void registJpushSuccess();
    }
}
